.PHONY= doc clean script

CC=g++
OPTIONS= -g 
DEBUG= #-D DEBUG
LIBDIR=lib
INCLUDEDIR=include
_OBJ= tcomplejo.o tlistacom.o tavlcom.o ta234com.o
OBJ = $(patsubst %,$(LIBDIR)/%,$(_OBJ))

tad: ./src/tad.cpp $(OBJ)
	$(CC) $(OPTIONS) $(DEBUG) -I $(INCLUDEDIR) $< $(OBJ) -o tad

$(LIBDIR)/%.o : $(LIBDIR)/%.cpp $(INCLUDEDIR)/%.h
	$(CC) $(OPTIONS) -I $(INCLUDEDIR) $(DEBUG) -c -o $@ $<

doc:
	doxygen

clean:
	rm -f $(OBJ) 

script: clean tad
